package contratosonline.ejb.controller;

import java.util.List;

import contratosonline.entity.Contrato;

public interface ContratoJPAControllerLocal {

	/* (non-Javadoc)
	 * @see contratosonline.ejb.controller.ContratoControllerLocal#persiste(contratosonline.entity.Contrato)
	 */
	public abstract void persiste(Contrato contrato);

	/* (non-Javadoc)
	 * @see contratosonline.ejb.controller.ContratoControllerLocal#altera(contratosonline.entity.Contrato)
	 */
	public abstract void altera(Contrato contrato) throws Exception;

	/* (non-Javadoc)
	 * @see contratosonline.ejb.controller.ContratoControllerLocal#exclui(java.lang.Integer)
	 */
	public abstract void exclui(Integer id) throws Exception;

	/* (non-Javadoc)
	 * @see contratosonline.ejb.controller.ContratoControllerLocal#findContratoEntities()
	 */
	public abstract List<Contrato> findContratoEntities();

	/* (non-Javadoc)
	 * @see contratosonline.ejb.controller.ContratoControllerLocal#findContratoEntities(int, int)
	 */
	public abstract List<Contrato> findContratoEntities(int maxResults,
			int firstResult);

	/* (non-Javadoc)
	 * @see contratosonline.ejb.controller.ContratoControllerLocal#findContrato(java.lang.Integer)
	 */
	public abstract Contrato findContrato(Integer id);

	/* (non-Javadoc)
	 * @see contratosonline.ejb.controller.ContratoControllerLocal#getContratoCount()
	 */
	public abstract int getContratoCount();


	public abstract List<Contrato> findContratoByNumeroAno(String num,
			String ano);

}